<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script language="JavaScript" src="scripts/date.js"></script>
<fmt:setBundle basename="message" />
<title><fmt:message key="showpublicholiday.title" /></title>
</head>
<body>
<h1>
<fmt:message  key="label.publicholiday"/></h1>
<c:url var="inserturl" scope="page" value="/ManagePublicHoliday.jsp">
	<c:param name="startdate" value="" />
	<c:param name="enddate" value="" />
	<c:param name="description" value="" />
	<c:param name="insert" value="true" />
</c:url>
<a href="${inserturl}"><fmt:message key="publicholiday.add"/></a>
<br/>
<table>
<tr>
<th>#</th>
<th><fmt:message key="label.publicholiday.startdate"></fmt:message></th>
<th><fmt:message key="label.publicholiday.enddate"></fmt:message></th>
<th><fmt:message key="label.publicholiday.description"></fmt:message></th>
<th>
<fmt:message key="label.edit">
</fmt:message>&nbsp;&nbsp;&nbsp;
<fmt:message key="label.delete">
</fmt:message>
</th>

</tr>
<c:forEach var="publicholiday" items="${publicholidays}" varStatus="status" >


<tr>
<td>${status.index+1}</td>
<td>${publicholiday.startdate}</td>
<td>${publicholiday.enddate}</td>
<td>${publicholiday.description}</td>
<td>
<c:url var="updateurl" scope="page" value="/ManagePublicHoliday.jsp">
	<c:param name="startdate" value="${publicholiday.startdate}" />
	<c:param name="enddate" value="${publicholiday.enddate}" />
	<c:param name="description" value="${publicholiday.description}" />
	<c:param name="update" value="true" />
</c:url>
<a href="${updateurl}">
<fmt:message key="label.edit">
</fmt:message>
</a>
<c:url var="deleteurl" scope="page" value="/DeletePublicHoliday">
	<c:param name="startdate" value="${publicholiday.startdate}" />
	<c:param name="enddate" value="${publicholiday.enddate}" />
</c:url>
<a href="${deleteurl}">
<fmt:message key="label.delete">
</fmt:message>
</a>
</td>
</tr>
</c:forEach>
</table>
</body>
</html>